/*
Copyright (c) 2008  Franklin Schmidt <fschmidt@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package fschmidt.util.mail;

import java.util.Date;


public interface Mail extends Content {

	public Content getContent() throws MailException;
	public void setContent(Content content) throws MailException;

	public String getSubject() throws MailException;
	public void setSubject(String subject) throws MailException;

	public MailAddress getFrom() throws MailException;
	public void setFrom(MailAddress address) throws MailException;

	public MailAddress getSender() throws MailException;
	public void setSender(MailAddress address) throws MailException;

	public MailAddress[] getReplyTo() throws MailException;
	public void setReplyTo(MailAddress... addresses) throws MailException;

	public MailAddress[] getTo() throws MailException;
	public void setTo(MailAddress... addresses) throws MailException;
	
	public MailAddress[] getCc() throws MailException;
	public void setCc(MailAddress... addresses) throws MailException;

	public MailAddress[] getBcc() throws MailException;
	public void setBcc(MailAddress... addresses) throws MailException;

	public String[] getHeader(String name) throws MailException;
	public void setHeader(String name,String... values) throws MailException;
	public void setHeader(String name,MailAddress address) throws MailException;
	
	public String getMessageID() throws MailException;
	public void setMessageID(String messageID) throws MailException;

	public Date getSentDate() throws MailException;
	public void setSentDate(Date sentDate) throws MailException;

	public String getRawInput() throws MailException;
}
